import request from "@/api/request"

export const getAllExamResult=(data)=>{
    return request({
        url:`/join/${data.pageNum}/${data.pageSize}`,
    })
}
export const getExamResultById=(data)=>{
    return request({
        url:`/join/${data.pageNum}/${data.pageSize}/${data.id}`,
    })
}
export const getOrderExamResult=(data)=>{
    return request({
        url:`/join/booked/${data.pageNum}/${data.pageSize}`,
    })
}
export const InsertExanResult=(data)=>{
    return request({
        url:'/join',
        method:'POST',
        data
    })
}
export const UpdateExanResult=(data)=>{
    return request({
        url:'/join',
        method:'PUT',
        data
    })
}
export const deleteExanResultBy=(data)=>{
    return request({
        url:`/join/${data.userId}/${data.examId}`,
        method:'DELETE',
    })
}